<!DOCTYPE html>
<html class="no-js"
      lang="en-us"
      dir="ltr">
<head>
  
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="google-site-verification" content="UciP55K4H-qAk_ZWNkE53CeljcViIKpTZ17YVfeBtlo">
        <meta name="include_mode" content="async">
    <meta property="fb:pages" content="6047074339" />

          <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicons/favicon-16x16.png">
<link rel="manifest" href="/favicons/site.webmanifest">
<link rel="mask-icon" href="/favicons/safari-pinned-tab.svg" color="#ff6c00">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="theme-color" content="#ffffff">    	<link rel="alternate" hreflang="en-us" href="https://www.crunchyroll.com/login?next=%2F">
	<link rel="alternate" hreflang="en-gb" href="https://www.crunchyroll.com/en-gb/login?next=%2F">
	<link rel="alternate" hreflang="es" href="https://www.crunchyroll.com/es/login?next=%2F">
	<link rel="alternate" hreflang="es-es" href="https://www.crunchyroll.com/es-es/login?next=%2F">
	<link rel="alternate" hreflang="pt-br" href="https://www.crunchyroll.com/pt-br/login?next=%2F">
	<link rel="alternate" hreflang="pt-pt" href="https://www.crunchyroll.com/pt-pt/login?next=%2F">
	<link rel="alternate" hreflang="fr" href="https://www.crunchyroll.com/fr/login?next=%2F">
	<link rel="alternate" hreflang="de" href="https://www.crunchyroll.com/de/login?next=%2F">
	<link rel="alternate" hreflang="ar" href="https://www.crunchyroll.com/ar/login?next=%2F">
	<link rel="alternate" hreflang="it" href="https://www.crunchyroll.com/it/login?next=%2F">
	<link rel="alternate" hreflang="ru" href="https://www.crunchyroll.com/ru/login?next=%2F">

    <link rel="alternate" type="application/rss+xml" title="Latest Shows on Crunchyroll"
      href="http://feeds.feedburner.com/crunchyroll/rss"/>
<link rel="alternate" type="application/rss+xml" title="Latest Anime News"
      href="http://feeds.feedburner.com/crunchyroll/animenews"/>

    
          <title>Crunchyroll - Sign Up or Log In</title>
    
                      <link href="https://www.crunchyroll.com/versioned_assets/css/www/application.3ba551a9.css" rel="stylesheet">
      
    

  <link rel="stylesheet" type="text/css" href="https://www.crunchyroll.com/versioned_assets/css/view_templates/isolated.187a3220.css">
  <link rel="stylesheet" type="text/css" href="https://www.crunchyroll.com/versioned_assets/css/components/isolated_page_header_footer.f3c8cf17.css">


  <link href="https://www.crunchyroll.com/versioned_assets/css/components/actions.a8f9068b.css" rel="stylesheet" type="text/css">
  <link href="https://www.crunchyroll.com/versioned_assets/css/components/std_form.fc70832f.css" rel="stylesheet" type="text/css">
  <link href="https://www.crunchyroll.com/versioned_assets/css/components/or_divider.d8a15ec8.css" rel="stylesheet" type="text/css">
  <link href="https://www.crunchyroll.com/versioned_assets/css/components/validation_manager.049beddf.css" rel="stylesheet" type="text/css">
  <link href="https://www.crunchyroll.com/versioned_assets/css/components/login_form.39c4b209.css" rel="stylesheet" type="text/css">
  <link href="https://www.crunchyroll.com/versioned_assets/css/components/signup_form.6485b318.css" rel="stylesheet" type="text/css">

  <link href="https://www.crunchyroll.com/versioned_assets/css/view/login_or_signup.eadeae2b.css" rel="stylesheet" type="text/css">

    <script>
    var DOMAIN = "crunchyroll.com",
      AJAXROOT = "\/ajax\/\u003F",
      WEBROOT = "http\u003A\/\/www.crunchyroll.com\/",
      LOCALE = "enUS",
      CACHED_TRANSLATIONS = {},
      page = {};
  </script>


              <script src="https://c.evidon.com/dg/dg.js" companyId="2796"></script>


  <script type="text/javascript">
  (function (id) {
    function append(scriptid, url, async) {
      var d = document, sn = 'script', f = d.getElementsByTagName(sn)[0];
      if (!f) f = d.head;
      var s = d.createElement(sn);
      s.async = async;
      s.id = scriptid;
      s.src = url;
      s.charset = 'utf-8';
      f.parentNode.insertBefore(s, f);
    }

    function is2parttld(value) {
      var tldindicators = ['co', 'com', 'info', 'web', 'info', 'gov', 'edu', 'biz', 'net', 'org'];
      var countryindicators = ['uk', 'us', 'fr', 'es', 'de', 'at', 'au', 'ae', 'be', 'br', 'ca', 'ch', 'cn', 'co', 'cz', 'dk', 'eg', 'eu', 'fi', 'gb', 'gr', 'hk', 'hr', 'hu', 'ie', 'in', 'jp', 'mx', 'nl', 'no', 'nz', 'pl', 'ro', 'ru', 'se'];
      return (tldindicators.indexOf(value) !== -1 || countryindicators.indexOf(value) !== -1);
    }

    function getRootDomain() {
      var parts = window.location.hostname.split('.');
      if (parts.length === 2) rootDomain = parts[0];
      else if (parts.length > 2) {
        // see if the next to last value is a common tld
        var part = parts[parts.length - 2];
        if (is2parttld(part)) {
          rootDomain = parts[parts.length - 3]; // go back one more
        } else {
          rootDomain = part;
        }
      }

      return rootDomain;
    }

    window.evidon = {};
    window.evidon.id = id;
    window.evidon.test = false;  // set to true for non-production testing.
    
    var cdn = '//c.evidon.com/', rootDomain = getRootDomain(), noticecdn = cdn + 'sitenotice/';
    append('evidon-notice', noticecdn + 'evidon-sitenotice-tag.js', false);
    append('evidon-location', cdn + 'geo/country.js', true);
    append('evidon-themes', noticecdn + id + '/snthemes.js', true);
    if (rootDomain) append('evidon-settings', noticecdn + id + '/' + rootDomain + (window.evidon.test ? '/test' : '') + '/settings.js', true);

    let urlLocale = "";
    let tagLocale = "en-us";

    window.evidon.vendorEnabled = function(vendorKey) {
      if (!window.evidon.notice) {
        return false;
      }
      let vendorList = window.evidon.notice.vendorList;
      let vendorId = Object.keys(vendorList).find(key => vendorList[key] === vendorKey);
      if (!vendorId) {
        return false;
      }
      let consentConfig = window.evidon.notice._getConsentedVendors();
      if (!consentConfig) {
        return false;
      }

      let allConsentEnabled = 'all' in consentConfig && consentConfig.all === true;
      let vendorConsentEnabled = vendorId in consentConfig && consentConfig[vendorId] === true;

      return allConsentEnabled || vendorConsentEnabled;
    }

    window.evidon.priorConsentCallback = function (categories, vendors, cookies) {
      // add the tags which need to wait for prior consent
      // here.  This should be all your advertising tags and
      // probably most of your social and tracking tags.
    }

    window.evidon.closeCallback = function () {
      // this is executed if the user closed a UI element without either Accepting (providing consent)
      // or Declining (declining to provide consent).
    }

    window.evidon.consentWithdrawnCallback = function () {
      // this is executed if the user withdraws consent and elects to
      // no longer allow technologies to run on the site.
    }

    window.evidon.consentDeclinedCallback = function () {
      // this is executed if the user explicitly declines giving consent by
      // using a Decline button
      if (tagLocale === 'en-us') {
        return;
      }

      window.evidon.notice.dropSuppressionCookie(30);
      $.cookie('_evidon_suppress_gdpr_locale_cookie', 'declined', {path: '/' + urlLocale, expires: 30});
    }

        document.addEventListener('DOMContentLoaded', function(event) {
      $(document).on('click', '#_evidon-accept-button', function () {
        $.cookie('_evidon_suppress_gdpr_locale_cookie', 'accepted', {path: '/' + urlLocale, expires: 30});
      });
    });

    setTimeout(function () {
            if (tagLocale === 'en-us' || $.cookie('_evidon_suppress_gdpr_locale_cookie')) {
        return;
      }

            if (!$.cookie('_evidon_suppress_notification_cookie') && !$.cookie('_evidon_consent_cookie')) {
                return;
      }

                  let cookieValue = $.cookie('_evidon_suppress_notification_cookie');
      $.cookie('_evidon_suppress_notification_cookie', null, { path: '/' });

      window.evidon.notice._showConsentUI();

            if (cookieValue && !$.cookie('_evidon_suppress_notification_cookie')) {
        $.cookie('_evidon_suppress_notification_cookie', cookieValue, { path: '/' });
      }
    }, 2000);
  })(2796);

  window.addEventListener('load', function () {
    function reloadPage() {
      window.location.reload();
    }

    if (window.evidon?.notice?._isConsentGiven()) {
      const savePreferencesText = window.evidon.notice.activeTranslations.snL2L3SavePreferences;

      window.evidon.notice.activeTranslations.optoutButtonText = savePreferencesText;
      window.evidon.notice.activeTranslations.mobileOptoutButtonText = savePreferencesText;
    }

    $(document).on('click', '#evidon-prefdiag-accept', reloadPage);
    $(document).on('click', '#_evidon-decline-button', reloadPage);
    $(document).on('click', '#_evidon-accept-button', reloadPage);
  });
</script>

<style>
  body.arME #_evidon_banner {
    position: sticky !important;
  }

  body.arME #evidon-prefdiag-overlay {
    position: absolute !important;
  }
</style>



<script>
  window.privacy = {
    isSonyPrivacy: true,
    appendScript: function (WMVendor, sonyVendor, script) {
      if (!this.vendorEnabled(WMVendor, sonyVendor)) {
        return;
      }

      if (typeof script === 'object') {
        let docScript = document.createElement('script');
        for (const prop in script) {
          docScript[prop] = script[prop];
        }
        document.head.appendChild(docScript);
      }

      if (typeof script === 'function') {
        script();
      }
    },

    vendorEnabled: function (WMVendor, sonyVendor) {
      if (this.isSonyPrivacy) {
        return window.evidon.vendorEnabled(sonyVendor);
      }

      return window.WM.UserConsent.inUserConsentState(WMVendor);
    }
  }
</script>
    <script>
  window.addEventListener('load', function () {
    window.privacy.appendScript(['ads-general', 'ads-vendor'], 'turner-broadcasting-system', function () {
      (function () {
        var scr = document.createElement("script");
        var protocol = ('https:' === document.location.protocol ? 'https://' : 'http://');
        scr.setAttribute('async', 'true');
        scr.type = "text/javascript";
        scr.src = protocol + "i.cdn.turner.com/ads/adfuel/ais/crunchyroll-ais.min.js";
        ((document.getElementsByTagName('head') || [null])[0] ||
          document.getElementsByTagName('script')[0].parentNode).appendChild(scr);
      })();
    });
  });
</script>

          <script src="https://www.crunchyroll.com/js/lang/a0e1d6b0f0b865ca25464098206aca16/cr/enUS/common.js"></script>
    
        <script src="https://www.crunchyroll.com/versioned_assets/js/components/ads_enabled.be54fb20.js"></script>
    <script src="https://www.crunchyroll.com/versioned_assets/js/modules/www/application.6c9b5fc4.js"></script>

    <script>
  window.addEventListener('load', function () {
    window.privacy.appendScript(['social-general', 'social-vendor'], 'facebook-connect', {
      async: true,
      src: 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5'
    });
  });
</script>
    <script type="text/javascript">
  $(document).ready(function (e) {
    CharacterCounter.Init();
    
    $('a.banuser').each(function () {
      trackToken(this);
    });
  });

  $(window).bind('beforeunload', function () {
    if (Page.warnOnLeavingPageMessage) {
      return Page.warnOnLeavingPageMessage;
    }
  });
</script>
          <script src="https://8f2bfa24-f12a-458a-89ac-391b91f711e3.redfastlabs.com/assets/bundle.js"></script>
      

  <script src="https://www.crunchyroll.com/vendor/mustache.js"></script>
  <script src="https://www.crunchyroll.com/vendor/webshims/polyfiller.js"></script>
  <script src="https://www.crunchyroll.com/versioned_assets/js/jquery/jquery.validation_manager.63f2e358.js"></script>
  <script src="https://www.crunchyroll.com/versioned_assets/js/jquery/validation_manager_options.de9c7f55.js"></script>

      
  <script src="https://www.crunchyroll.com/versioned_assets/js/tracking/ga_initial_visit.e271efa0.js"></script>
  <script>
    (function initializeGA() {
      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();
    (function initializeGAObject(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

    ga('create', 'UA-579606-1', 'auto', {
            'allowLinker': true
    });
    ga('require', 'linkid', 'linkid.js');

    (function sendPageview() {
      var initialVisitDate = ga_initial_visit.getPSTValue();
      if (initialVisitDate) {
        ga('set', 'dimension4', initialVisitDate);
      }

      ga('set', 'dimension5', 'not-registered');
      ga('set', 'dimension6', '');
      ga('set', 'dimension7', '');
      ga('set', 'dimension8', '');
      ga('send', 'pageview');
    })();
  </script>

<!-- Facebook Pixel Code -->
<script>
  window.addEventListener('load', function () {
    window.privacy.appendScript(['ads-general', 'ads-vendor'], 'facebook-connect', function () {
      !function (f, b, e, v, n, t, s) {
        if (f.fbq) return;
        n = f.fbq = function () {
          n.callMethod ?
            n.callMethod.apply(n, arguments) : n.queue.push(arguments)
        };
        if (!f._fbq) f._fbq = n;
        n.push = n;
        n.loaded = !0;
        n.version = '2.0';
        n.queue = [];
        t = b.createElement(e);
        t.async = !0;
        t.src = v;
        s = b.getElementsByTagName(e)[0];
        s.parentNode.insertBefore(t, s)
      }(window, document, 'script',
        'https://connect.facebook.net/en_US/fbevents.js');
      fbq('init', 210736662603762);
            fbq('track', 'PageView');
          });
  });
</script>
<!-- End Facebook Pixel Code -->

  
      
<!-- Global site tag (gtag.js) - Google Ads: 982007020 -->
<script>
  window.addEventListener('load', function () {
    window.privacy.appendScript(['ads-general', 'ads-vendor'], 'google-tag-manager', {
      async: true,
      src: 'https://www.googletagmanager.com/gtag/js?id=AW-982007020'
    });

    if (window.privacy.vendorEnabled(['ads-general', 'ads-vendor'], 'google-tag-manager')) {
      window.dataLayer = window.dataLayer || [];

      window.gtag = function() {
        dataLayer.push(arguments);
      }

      gtag('js', new Date());

      gtag('config', 'AW-982007020');
    }
  });
</script>
  
  </head>
  <div class="login-or-signup-page">
          <header class="isolated-page-header">
        <div class="content">
          <h1
            class="logo"
            itemscope
            itemtype="https://schema.org/Organization"
          >
            <link href="/" itemprop="url">
            <meta content="Crunchyroll" itemprop="name">

            <a href="/" rel="home" id="isolated_page_home_link" data-position="left">
              <svg viewBox="0 0 96 18">
                <title>Crunchyroll</title>
                <use xlink:href="/i/svg/header.svg#cr_logo_noTagline"></use>
              </svg>
            </a>
          </h1>

                      <div class="custom-message">
                                        </div>
                  </div>
      </header>
    
    <main>
        <div class="login-messages">
    <div id="message_box" style="display:none"></div>
  </div>
  <div class="forms">
    <section class="form-section login-form-section">
      <header>
        <h1>Log In</h1>

        <p class="subhead">Already have an account? Log in below. <a class="signup-form-link" href="#signup_form">Or create a new account.</a></p>
      </header>

      


<form method="post" action="post.php" class="std-form login-form form-area" >
  
  <div class="fields">
            <p>
				<label for="login_form_name" class="required">
					<span class="label-text">Email or User Name</span>
		<input type="text" name="login_form_name" required="required"pattern="^[\x00-\x7F]{3,}$" data-pattern-mismatch-message="Please use a valid email or username." data-missing-value-message="Please use a valid email or username." /></label></p>

        <p>
			<label for="login_form_password" class="required">
				<span class="label-text">Password<span class="info forgot-password-link">
			<a href="/resetpw" tabIndex="3">Forgot password?</a></span></span>
		<input type="password" name="login_form_password" required="required" pattern="\S{6,}" data-pattern-mismatch-message="Passwords must be at least 6 characters, but no spaces." data-missing-value-message="Passwords must be at least 6 characters, but no spaces." /></label></p>
    
      </div>

  <button id="login_submit_button" class="action type-primary" type="submit">
    Log In
  </button>
<input type="hidden" id="login_form_redirect_url" name="login_form[redirect_url]" value="/" /><input type="hidden" id="login_form__token" name="login_form[_token]" value="yvvFycXUgh2p5deWpn8xBux8v-aSmKLAZqVIiEwoDyg" /></form>

    <script type="text/javascript">
    var CaptchaCallback = function LoginFormCaptchaCallback() {
      $('.g-recaptcha').each(function(index, el) {
        grecaptcha.render(el, {'sitekey' : '6LfpWucSAAAAAGp_ie37zj6x3WRP0UBe2KCZXoqG'});
      });
    };
  </script>
      
      <footer>
        <p>
          <small>Trouble logging in? Make sure browser cookies and JavaScript are enabled.</small>
        </p>
      </footer>
    </section>

    <section class="form-section signup-form-section">
      <header>
        <h1>Sign Up for a Free Account</h1>
        <p class="subhead">Please join Crunchyroll! It’s only one click away!</p>
      </header>

      


<form name="signup_with_profile" method="post" action="/login#signup_form" class="std-form signup-form type-with-profile form-area" id="signup_form">
  
  <div class="fields">
        <p><label for="signup_with_profile_email" class="required"><span class="label-text">Email Address</span><input type="email" id="signup_with_profile_email" name="signup_with_profile[email]" required="required" pattern="^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{1,}$" data-pattern-mismatch-message="Please use a valid email address." data-missing-value-message="Please enter a valid email" /></label></p>

    <p><label for="signup_with_profile_username" class="required"><span class="label-text">User Name</span><input type="text" id="signup_with_profile_username" name="signup_with_profile[username]" required="required" minlength="3" maxlength="30" pattern="[_\-a-zA-Z0-9]{3,30}" title="Username must be 3-30 characters (only letters, numbers, underscores, and hyphens)." data-pattern-mismatch-message="Username must be 3-30 characters (only letters, numbers, underscores, and hyphens)." data-missing-value-message="Please enter a username." /></label></p>

    <p><label for="signup_with_profile_password" class="required"><span class="label-text">Password</span><input type="password" id="signup_with_profile_password" name="signup_with_profile[password]" required="required" minlength="6" pattern="\S{6,}" title="Passwords must be at least 6 characters, but no spaces." data-pattern-mismatch-message="Passwords must be at least 6 characters, but no spaces." data-missing-value-message="Please use a valid password." /></label></p>

    <fieldset class="date-fields"><legend>Birthday</legend><div class="fields"><select id="signup_with_profile_date_of_birth_month" name="signup_with_profile[date_of_birth][month]" required="required" class="date-month-field" data-validation-linked-field="date" data-pattern-mismatch-message="" data-missing-value-message="Please select a valid month."><option value="" selected="selected">Month</option><option value="1">Jan</option><option value="2">Feb</option><option value="3">Mar</option><option value="4">Apr</option><option value="5">May</option><option value="6">Jun</option><option value="7">Jul</option><option value="8">Aug</option><option value="9">Sep</option><option value="10">Oct</option><option value="11">Nov</option><option value="12">Dec</option></select><select id="signup_with_profile_date_of_birth_day" name="signup_with_profile[date_of_birth][day]" required="required" class="date-day-field" data-validation-linked-field="date" data-pattern-mismatch-message="" data-missing-value-message="Please select a valid day."><option value="" selected="selected">Day</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option></select><select id="signup_with_profile_date_of_birth_year" name="signup_with_profile[date_of_birth][year]" required="required" class="date-year-field" data-validation-linked-field="date" data-pattern-mismatch-message="" data-missing-value-message="Please select a valid year."><option value="" selected="selected">Year</option><option value="2022">2022</option><option value="2021">2021</option><option value="2020">2020</option><option value="2019">2019</option><option value="2018">2018</option><option value="2017">2017</option><option value="2016">2016</option><option value="2015">2015</option><option value="2014">2014</option><option value="2013">2013</option><option value="2012">2012</option><option value="2011">2011</option><option value="2010">2010</option><option value="2009">2009</option><option value="2008">2008</option><option value="2007">2007</option><option value="2006">2006</option><option value="2005">2005</option><option value="2004">2004</option><option value="2003">2003</option><option value="2002">2002</option><option value="2001">2001</option><option value="2000">2000</option><option value="1999">1999</option><option value="1998">1998</option><option value="1997">1997</option><option value="1996">1996</option><option value="1995">1995</option><option value="1994">1994</option><option value="1993">1993</option><option value="1992">1992</option><option value="1991">1991</option><option value="1990">1990</option><option value="1989">1989</option><option value="1988">1988</option><option value="1987">1987</option><option value="1986">1986</option><option value="1985">1985</option><option value="1984">1984</option><option value="1983">1983</option><option value="1982">1982</option><option value="1981">1981</option><option value="1980">1980</option><option value="1979">1979</option><option value="1978">1978</option><option value="1977">1977</option><option value="1976">1976</option><option value="1975">1975</option><option value="1974">1974</option><option value="1973">1973</option><option value="1972">1972</option><option value="1971">1971</option><option value="1970">1970</option><option value="1969">1969</option><option value="1968">1968</option><option value="1967">1967</option><option value="1966">1966</option><option value="1965">1965</option><option value="1964">1964</option><option value="1963">1963</option><option value="1962">1962</option><option value="1961">1961</option><option value="1960">1960</option><option value="1959">1959</option><option value="1958">1958</option><option value="1957">1957</option><option value="1956">1956</option><option value="1955">1955</option><option value="1954">1954</option><option value="1953">1953</option><option value="1952">1952</option><option value="1951">1951</option><option value="1950">1950</option><option value="1949">1949</option><option value="1948">1948</option><option value="1947">1947</option><option value="1946">1946</option><option value="1945">1945</option><option value="1944">1944</option><option value="1943">1943</option><option value="1942">1942</option><option value="1941">1941</option><option value="1940">1940</option><option value="1939">1939</option><option value="1938">1938</option><option value="1937">1937</option><option value="1936">1936</option><option value="1935">1935</option><option value="1934">1934</option><option value="1933">1933</option><option value="1932">1932</option><option value="1931">1931</option><option value="1930">1930</option><option value="1929">1929</option><option value="1928">1928</option><option value="1927">1927</option><option value="1926">1926</option><option value="1925">1925</option><option value="1924">1924</option><option value="1923">1923</option><option value="1922">1922</option><option value="1921">1921</option><option value="1920">1920</option><option value="1919">1919</option><option value="1918">1918</option><option value="1917">1917</option><option value="1916">1916</option><option value="1915">1915</option><option value="1914">1914</option><option value="1913">1913</option><option value="1912">1912</option><option value="1911">1911</option><option value="1910">1910</option><option value="1909">1909</option><option value="1908">1908</option><option value="1907">1907</option><option value="1906">1906</option><option value="1905">1905</option><option value="1904">1904</option><option value="1903">1903</option><option value="1902">1902</option><option value="1901">1901</option><option value="1900">1900</option><option value="1899">1899</option></select></div></fieldset>

    <fieldset class="gender-fields"><div class="fields"><label class="radio-label"><input type="radio" id="signup_with_profile_gender_0" name="signup_with_profile[gender]" value="2" /><span class="label-text">Female</span></label><label class="radio-label"><input type="radio" id="signup_with_profile_gender_1" name="signup_with_profile[gender]" value="1" /><span class="label-text">Male</span></label><label class="radio-label"><input type="radio" id="signup_with_profile_gender_2" name="signup_with_profile[gender]" value="3" /><span class="label-text">Other</span></label></div></fieldset>

    <p><label for="signup_with_profile_opt_in_to_marketing" class="checkbox-label"><input type="checkbox" id="signup_with_profile_opt_in_to_marketing" name="signup_with_profile[opt_in_to_marketing]" value="1" /><span class="label-text">Yes, keep me posted on updates related to Crunchyroll.</span></label></p>

      </div>

  <button id="signup_submit_button" class="action type-primary" type="submit">
    Create Account
  </button>

<input type="hidden" id="signup_with_profile_redirect_url" name="signup_with_profile[redirect_url]" value="/" /><input type="hidden" id="signup_with_profile__token" name="signup_with_profile[_token]" value="QWJ5x7FJRW8q38UsgHos1FC6s0yjrHlblhTncqXCyvc" /></form>

    <script type="text/javascript">
    var CaptchaCallback = function SignupFormCaptchaCallback() {
      $('.g-recaptcha').each(function(index, el) {
        grecaptcha.render(el, {'sitekey' : '6LfpWucSAAAAAGp_ie37zj6x3WRP0UBe2KCZXoqG'});
      });
    };

    $("#signup_form").submit(function() {
      $("#signup_submit_button").prop('disabled', true);
    });
  </script>
      
      <footer>
        <p>
          <small>By creating an account you're agreeing to <a href="/tos">our Terms</a> &amp; <a href="/privacy">Privacy Policy</a>, and you confirm that you are at least 16 years old.</small>
        </p>

      </footer>
    </section>
  </div>
    </main>

          <footer class="isolated-page-footer" role="contentinfo">
        <p class="copyright-notice" dir="ltr">&copy; 2006-2022 Ellation, LLC.</p>
      </footer>
      </div>

      <div class="opt-in" data-role="opt-in-banner">
  <img class="opt-in__bg" src="/opt-in/hime-banner.png"
       srcset="/opt-in/hime-banner.png 1x, /opt-in/hime-banner@2x.png 2x"
       alt="Hime banner">
  <h2 class="opt-in__title">
    Try The NEW Crunchyroll<span>Beta</span>
  </h2>
  <a class="opt-in__cta" href="/trybeta" data-position="bottom right">
    check it out
  </a>
  <button class="opt-in__close"
          data-role="close-try-beta-banner"
          data-target="[data-role='opt-in-banner']"
          title="not now"
  >
    not now
  </button>
</div>

<script type="text/javascript">
  $(function () {
    $('[data-role="close-try-beta-banner"]').click(function (e) {
      e.preventDefault();
      e.stopPropagation();
      $.cookie('crunchyroll_beta_hide_banner', 1, {expires: 365});
      $($(this).data('target')).remove();
    })
  });
</script>

  
                  <script type="text/javascript">
  window.addEventListener('load', function () {
    window.privacy.appendScript(['ads-general', 'ads-vendor'], 'scorecard-research', function () {
      var _comscore = _comscore || [];
      _comscore.push({c1: "2", c2: "15801199"});
      (function () {
        var s = document.createElement("script"), el = document.getElementsByTagName("script")[0];
        s.async = true;
        s.src = (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js";
        el.parentNode.insertBefore(s, el);
      })();
    });
  });
</script>


  <script>
  window.addEventListener('load', function () {
    window.privacy.appendScript(['ads-general', 'ads-vendor'], 'twitter', {
      async: false,
      onload: function () {
        if (twttr.conversion) {
          twttr.conversion.trackPid('l4wzz');
        }
      },
      src: 'https://platform.twitter.com/oct.js'
    });
  });
</script>
      <script>
  var is_premium = false;
  var ga = ga || function noop() {
    // Do nothing
  };

  $('#header_search_input').on('click', function trackSearch() {
    ga('send', 'event', 'homepage', 'search', 'click');
  });


  $('#header_account_settings').on('click', function trackAccountSettings() {
    if (is_premium) {
      ga('send', 'event', 'Cancel', 'Cancel.Settings.click');
    }
  });
</script>
      <script>
  !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="4.0.0";}}();

  (function initializeSegment() {
    const segmentKey = 'KC3ITMkcWCrn2dZrMXlkjNQBaFSB9ilG';
    const fallbackApiHost = 'cr-eec.etp-prod.com/v1';
    const fallbackLibraryHost = 'https://sa.crunchyroll.com/analytics.js/v1/' + segmentKey + '/analytics.min.js';
    const domain = 'crunchyroll.com';
    if (document.referrer.indexOf(domain) === -1) {
      $.cookie('initial_referrer', document.referrer, {expires: 365});
    }

    const defaultApiHost = 'eec.crunchyroll.com/v1';
    const defaultLibraryHost = 'https://cdn.segment.io/analytics.js/v1/' + segmentKey + '/analytics.min.js';

    function loadSegmentScript(segmentKey, successCallback, errorCallback) {
      const script = document.createElement('script');
      script.type = 'text/javascript';
      script.async = !0;
      script.src = defaultLibraryHost;

      script.onload = function () {
        successCallback();
      };

      script.onerror = function () {
        errorCallback();
      };

      var firstScript = document.getElementsByTagName('script')[0];
      firstScript.parentNode.insertBefore(script, firstScript)
    }

    function overrideSegmentHost() {
      window.analytics._integrations['Segment.io'].options.apiHost = defaultApiHost;

      const req = new XMLHttpRequest();
      req.open('POST', 'https://' + defaultApiHost + '/batch');
      req.setRequestHeader('Content-Type', 'application/json');
      req.addEventListener('error', function () {
        if (req.status === 0) { // BLOCK BY CLIENT STATUS CODE
          window.analytics._integrations['Segment.io'].options.apiHost = fallbackApiHost;
        }
      });
      // POST an empty batch action to check if api.segment.io is available
      req.send(JSON.stringify({batch: []}));
    }

    function loadSegmentFallbackLibrary() {
      const script = document.createElement('script');
      script.type = 'text/javascript';
      script.async = !0;
      script.src = fallbackLibraryHost;

      script.onload = function () {
        window.analytics._integrations['Segment.io'].options.apiHost = fallbackApiHost;
      };

      const firstScript = document.getElementsByTagName('script')[0];
      firstScript.parentNode.insertBefore(script, firstScript);
    }

    /**
     * Trigger segment.identify with required parameters
     * @param anonymousId
     */
    function identify(anonymousId) {
      let analytics = window.analytics,
        traits = $.extend(
          true,
          {
            anonymousId: anonymousId,
            isBetaEligible: true,
            isUserInBeta: false,
            initial_referrer: $.cookie('initial_referrer')
          },
          extractUtmInfo(),
          extractReferrerData()
        );

            analytics.setAnonymousId(anonymousId);
      
            analytics.identify("", traits);
      
      let page_metadata = $.extend({
        channelName: '',
        modal: '',
        path: window.location.pathname,
        url: window.location.href,
        referrer: document.referrer,
        pageLoadTime: ''
      }, {"isAuthenticated":false});

      
            analytics.page('Login', page_metadata);
          }

    function getFlyoutObject() {
      elem = $('#free_trial_prompt_cta');
      actionDetails =  {
        textOfButtonOrLink: elem.find('button').text().trim(),
        pageOrScreen: 'Login',
        position: elem.data('position'),
        referrer: document.referrer
      }
      return {
        ActionDetail: actionDetails,
        upsellType: elem.data('upselltype'),
        SKU: elem.data('sku'),
      };
    }

    function extractUtmInfo() {
      let utm_param_names = ['utm_campaign', 'utm_source', 'utm_medium', 'utm_term', 'utm_content'],
          utm_params      = {},
          query_params    = getSearchParams();

      for (let idx in utm_param_names) {
        let field_name = utm_param_names[idx];
        if (typeof query_params[field_name] != 'undefined') {
          utm_params[field_name] = query_params[field_name];
        }
      }

      return utm_params;
    }

    function getSearchParams() {
      let query_string = (window.location.search || '?').slice(1),
        query_arr = query_string.split('&'),
        query_params = {};

      for (let i in query_arr) {
        let splitted = query_arr[i].split('=');
        query_params[splitted[0]] = splitted[1];
      }

      return query_params;
    }

    function extractReferrerData() {
      let referrer = document.referrer,
        referrer_data = {};

      if (referrer) {
        referrer_data['referrer'] = referrer;
        let urlParts = referrer.replace('http://','').replace('https://','').split(/[/?#]/);
        referrer_data['referring_domain'] = urlParts[0];
      }

      return referrer_data;
    }

    loadSegmentScript(segmentKey, overrideSegmentHost, loadSegmentFallbackLibrary);

    let isAnalyticsReady = false;
    window.analytics.ready(function () {
      isAnalyticsReady = true;
      identify("5e7025f0-1b27-4fa2-b047-5d9e5850246c");
    });

    // Trigger segment identify in case analytics didn't triggered "ready" event
    setTimeout(function () {
      if (!isAnalyticsReady) {
        identify("5e7025f0-1b27-4fa2-b047-5d9e5850246c");
      }
    }, 5000);
  })();

  (function registerSegmentEvents() {
    window.segment = {
      track: function () {
        this.trackLoginSelected();
        this.trackLogoutSelected();
        this.trackLoginFailed();
        this.trackLoginRequested();

        this.trackRandomSelected();
        this.trackRegistrationSelected();
        this.trackRegistrationFailed();
        this.trackRegistrationRequested();
        this.trackLinkAccountPermissionsAgreed();
        this.trackLinkAccountPermissionsDisagree();
        this.trackLinkAccountRequested();

        this.trackPaymentMethodSelected();
        this.trackUpsellSelected();
        this.trackAnchorNavigated();
        this.trackHelpFaq();
        this.trackSubscriptionRequested();

        this.trackFreeTrialSelectedContinue();
        this.trackTosSelected();
        this.trackPrivacySelected();
        this.trackPasswordResetNavigated();
        this.trackHomeSelected();
        this.trackMainMenuItemSelected();
        this.trackSearchNavigated();
        this.trackSearchPanelSelected();
        this.trackWatchlistNavigated();
        this.trackAccountMenuOpened();
        this.trackAccountMenuItemSelected();
        this.trackWhatIsVRV();
        this.trackManualSigninNavigated();

        this.trackShoppingContinued();
        this.trackCartUpdated();
        this.trackCheckoutStarted();

        this.trackPromotedShowClicked();

        this.trackOptInPopupDismissed();
        this.trackBetaOptInConfirmed();
        this.trackBetaOptOutConfirmed();
        this.trackModalBetaLeaveClose();
        this.trackBetaCTASelected();

        this.trackStoreButtonClicked();
        this.trackMarketingBox();
        this.trackMarketingBanner();
        this.trackSeriesBanner();

        this.trackWatchlistItemAddAttempted();
        this.trackWatchlistItemRemoveAttempted();

        this.trackCancellationSurveySubmitted();

        this.trackAppStoreNavigated();
      },

      trackLoginRequested: function () {
        $('#login_submit_button').click(function () {
          analytics.track('Login Requested', {
            loginId: $('#login_form_name').val(),
            ActionDetail: helper.buildActionDetail($(this), 'right')
          })
        });

        $('#freetrial_landing_login_form').find('button').click(function () {
          analytics.track('Login Requested', {
            loginId: $('#login_form_name').val(),
            ActionDetail: helper.buildActionDetail($(this), 'right')
          })
        });
      },

      trackLoginSelected: function () {
        $('#header_userpanel_beta').find('.login a').click(function () {
          analytics.track('Login Selected', {
            ActionDetail: helper.buildActionDetail($(this).find('.caption'), 'header')
          })
        });

        $('.showmedia-free-trial-already-have-account a').click(function () {
          analytics.track('Login Selected', {
            ActionDetail: helper.buildActionDetail($(this), 'right')
          })
        });

        $('#freetrial_landing_select_login_form').click(function () {
          analytics.track('Login Selected', {
            ActionDetail: helper.buildActionDetail($(this), 'right')
          })
        })

        $('#log_in_link').click(function() {
          analytics.track('Login Selected', {
            ActionDetail: helper.buildActionDetail($(this).find('.erc-account-menu__link-title'), 'top right')
          });
        });

        $('#add_to_queue_login').click(function() {
          let event_properties = {
            ActionDetail: helper.buildActionDetail($(this), 'queue_prompt'),
          };
          analytics.track('Login Selected', event_properties)
        });
      },

      trackLogoutSelected: function() {
        $('#logout').click(function() {
          analytics.track('Logout Selected', {
            ActionDetail: helper.buildActionDetail($(this), 'top right')
          });
        });
      },

      trackLoginFailed: function() {
        var errors = $('#login_form').find('li.error');
        if (errors.length > 0) {
          analytics.track('Login Failed', {
            emailAddress: $('#login_form_name').val(),
            failureReason: errors.first().text()
          });
        }

        errors = $('#freetrial_login_form').find('li.error');
        if (errors.length > 0) {
          analytics.track('Login Failed', {
            emailAddress: $('#login_form_name').val(),
            failureReason: errors.first().text()
          });
        }
      },

      trackRandomSelected: function () {
        $('#random_button').click(function () {
          analytics.track('Random Content Button Selected', {
            ActionDetail: helper.buildActionDetail($(this), 'top right')
          })
        });
      },

      trackRegistrationRequested: function () {
        let trackEvent = function (form_selector, submit_button_selector, email_field_selector, position, trackRegistrationFailed) {
          $(submit_button_selector).click(function() {
            analytics.track('Registration Requested', {
              emailAddress: $(form_selector).find(email_field_selector).val(),
              ActionDetail: helper.buildActionDetail($(this), position)
            });
            if (typeof trackRegistrationFailed != 'undefined' && trackRegistrationFailed) {
              //catch ajax validation errors
              segment.trackRegistrationFailed(form_selector, email_field_selector);
            }
          });
        }

        trackEvent('#signup_form', '#signup_form #signup_submit_button', '#signup_with_profile_email', 'left');
        trackEvent('#freetrial_signup_form', '#freetrial_signup_form #signup_submit_button', '#signup_email', 'right', true);
        trackEvent('#showmedia_free_trial_form', '.showmedia-free-trial-content .free-trial-submit-button', '#new_email', 'right');
      },

      trackRegistrationFailed: function () {
        var errors = $('#signup_form').find('li.error');
        if (errors.length > 0) {
          analytics.track('Registration Failed', {
            emailAddress: $('#signup_with_profile_email').val(),
            failureReason: errors.first().text()
          });
        }

        errors = $('#freetrial_signup_form').find('li.error');
        if (errors.length > 0) {
          analytics.track('Registration Failed', {
            emailAddress: $('#freetrial_signup_form #signup_email').val(),
            failureReason: errors.first().text()
          });
        }
      },

      trackRegistrationSelected: function () {
        $('#freetrial_landing_select_signup_form').click(function () {
          analytics.track('Registration Selected', {
            ActionDetail: helper.buildActionDetail($(this), 'right')
          })
        });

        $('#create_account_link').click(function() {
          analytics.track('Registration Selected', {
            ActionDetail: helper.buildActionDetail($(this), 'top right', 'Create Account')
          });
        });

        $('#add_to_queue_signup').click(function() {
          let event_properties = {
            ActionDetail: helper.buildActionDetail($(this), 'queue_prompt'),
          };
          let experiment = null;
          if (!_.isEmpty(experiment)) {
            event_properties['Experiment'] = experiment;
          }
          analytics.track('Registration Selected', event_properties)
        });
      },

      trackLinkAccountPermissionsAgreed: function() {
        $('.permissions-request #allow_link').click(function() {
          analytics.track('Link Accounts Permissions Agreed', {
            ActionDetail: helper.buildActionDetail($(this), 'bottom')
          })
        });
      },

      trackLinkAccountPermissionsDisagree: function() {
        $('.permissions-request #deny_link').click(function() {
          analytics.track('Link Accounts Permissions Disagree', {
            ActionDetail: helper.buildActionDetail($(this), 'bottom')
          })
        });
      },

      trackLinkAccountRequested: function () {
        $('form[name="partners_login_form"]').submit(function () {
          analytics.track('Link Accounts Requested', {
            ActionDetail: helper.buildActionDetail($(this).find('#log_in_submit_button'), 'bottom')
          })
        });
      },

      trackPaymentMethodSelected: function () {
        $('.subscription-page #payment_method_credit_card').click(clickOnPaymentMethod('CreditCard'));
        $('.subscription-page #payment_method_paypal').click(clickOnPaymentMethod('PayPal'));

        function clickOnPaymentMethod(method) {
          return function () {
            analytics.track('Payment Method Selected', {
              method: method
            });
          }
        }
      },

      trackSubscriptionSelected: function (element, sku) {
        var infoObject = {
          ActionDetail: helper.buildActionDetail(element, 'center')
        };

        if (sku) {
          infoObject.SKU = {
            skuId: sku.id,
            skuTitle: sku.title,
            skuType: sku.type
          };
        }

        analytics.track('Subscription Selected', infoObject);
      },

      trackFreeTrialSelected: function (element, sku) {
        if (!sku) {
          return;
        }

        var infoObject = {
          SKU: {
            skuId: sku.id,
            skuTitle: sku.title,
            skuType: sku.type
          },
          ActionDetail: helper.buildActionDetail(element, 'center')
        };

        analytics.track('Free Trial Selected', infoObject);
      },

      trackCustomEvent: function (event, data) {
        analytics.track(event, data);
      },

      trackSubscriptionCancelled: function (sku, skuTitle) {
        analytics.track('Subscription Cancelled', {
          SKU: {
            skuId: sku,
            skuTitle: skuTitle,
            skuType: ''
          }
        });
      },

      trackSubscriptionRequested: function () {
        $('#premium_pick_plan_container').find('.premium-pick-plan-choices a').click(function () {
          analytics.track('Subscription Requested', {
            ActionDetail: helper.buildActionDetail($(this), 'center', $(this).attr('data-text')),
            SKU: {
              skuId: $(this).attr('data-sku'),
              skuTitle: '',
              skuType: ''
            }
          });
        });
      },

      trackSearchNavigated: function() {
        let trackingCallback = function() {
          let $this = $(this);
          analytics.track('Search Navigated', {
            ActionDetail: helper.buildActionDetail($this, $this.data('position'), $this.data('text'))
          });
        };

        $('#header_search_form').submit(trackingCallback)
        $('#search, .erc-search-link').click(trackingCallback);
      },

      trackSearchPanelSelected: function() {
        $(document).on("click", '.search-item', function(event) {
          let $this = $(this);
          let group_id = $this.data('item-id');
          let group = segment_formated_searched_groups[group_id];

          analytics.track('Search Panel Selected', {
            searchResultNumber: $this.data('order-number'),
            ContentMeida: helper.buildContentMediaFromGroup(group),
            searchTerms: $('#header_search_input').val()
          });
        });
      },

      trackUpsellSelected: function() {
        trackEvent($('#header_try_premium_free'), 'top', 'Premium try free');
        trackEvent($('#footer_compare_plans'), 'bottom');
        trackEvent($('#footer_two_week_free_trial'), 'bottom');
        trackEvent($('.erc-user-eligibility'), 'top');
        trackEvent($('#account_menu_upsell_cta'), 'top right');
        trackEvent($('#cr_plus_showmedia_freetrial_cta'), 'right');
        trackEvent($('#cr_plus_showmedia_premium_cta'), 'right');
        trackEvent($('#upgrade_account_menu_button'), 'top right');
        trackEvent($('#upgrade_account_profile_button'), 'center');
        trackEvent($('#upgrade_account_profile_fan_button'), 'center');
        trackEvent($('#cr_plus_membership_cta a'), 'top right', $('#cr_plus_membership_cta a button').text());
        trackEvent($('#free_trial_prompt_cta a'), 'ftpopup', $('#free_trial_prompt_cta a button').text());
        trackEvent($('#interstitial_try_premium_cta'), 'bottom');
        trackEvent($('#watchpage_freetrial_cta'), 'right');
        trackEvent($('#upgrade_plan_button'), 'center');
        trackEvent($('#showmedia_freetrial_submit_button'), 'right');
        trackEvent($('.showmedia_videoplayer_cta'), 'videoplayer');

        function trackEvent(element, position, text) {
          analytics.trackLink(element.get(), 'Upsell Selected', {
            ActionDetail: helper.buildActionDetail(element, position, text),
            upsellType: element.data('upselltype'),
          });
        }
      },

      trackAnchorNavigated: function () {
        $('.top-menu-anchor-navigated').click(function () {
          analytics.track('Anchor Navigated', {
            ActionDetail: helper.buildActionDetail($(this), 'top'),
          });
        });
      },

      trackHelpFaq: function () {
        $('.bottom-help-faq').click(function () {
          analytics.track('Help/FAQ', {
            ActionDetail: helper.buildActionDetail($(this), 'bottom'),
          });
        });
      },

      trackSubscriptionCancelRequested: function () {
        analytics.track('Subscription Cancel Requested');
      },

      trackSubscriptionCancelConfirmed: function (element) {
        analytics.track('Subscription Cancel Confirmed', {
          ActionDetail: helper.buildActionDetail(element, 'middle top', 'OK')
        });
      },

      trackSubscriptionCancelSelected: function(element) {
        analytics.track('Subscription Cancel Selected', {
          ActionDetail: helper.buildActionDetail(element, 'middle left')
        });
      },

      trackFreeTrialCancelled: function(sku, title, type) {
        analytics.track('Free Trial Cancelled', {
          SKU: {
            skuId: sku,
            skuTitle: title,
            skuType: type
          }
        });
      },

      trackFreeTrialSelectedContinue: function() {
        $('#js_continue_free_trial').click(function() {
          var element = $(this);
          analytics.track('Free Trial Selected', {
            ActionDetail: helper.buildActionDetail(element, 'right'),
            SKU: {
              skuId: element.data('sku'),
              skuTitle: '',
              skuType: ''
            },
            ExternalReferrer: {
              referrerId: '',
              referrerLink: '',
              referrerName: '',
              referrerType: '',
              referrerUrl: ''
            },
            lengthOfFreeTrial: '14 Days'
          });
        });
      },

      trackUpsellDisplayed: function (textOfButtonOrLink, position) {
        analytics.track('Upsell Displayed', {
          textOfButtonOrLink: textOfButtonOrLink,
          position: position
        });
      },

      trackHomeSelected: function() {
        $('#isolated_page_home_link, #home_link, .cr-beta-back__link, #back_home').each(function() {
          analytics.trackLink($(this).get(0), 'Home Selected', {
            ActionDetail: helper.buildActionDetail($(this), $(this).data('position')),
          });
        });

        // SFP
        let element = $('#cr-home a');
        analytics.trackLink(element.get(), 'Home Selected', {
          ActionDetail: helper.buildActionDetail(element, 'top left', element.attr('href'))
        });
      },

      trackMainMenuItemSelected: function() {
        $('.erc-header__tile, .erc-browse-dropdown__link, .erc-header-link, #header_menubar_beta a').click(function(e) {
          if($(e.currentTarget).attr('id') === 'header_try_premium_free') {
            return;
          }
          analytics.track('Main Menu Item Selected', {
            ActionDetail: helper.buildActionDetail($(this), 'top')
          });
        });
      },

      trackWatchlistNavigated: function() {
        $('#watchlist, .queue a').click(function() {
          analytics.track('Watchlist Navigated', {
            ActionDetail: helper.buildActionDetail($(this), 'top right')
          });
        });
      },

      trackAccountMenuOpened: function() {
        $('#header_profile_button').click(function() {
          if ($(this).hasClass('state-active')) {
            return;
          }
          analytics.track('Account Menu Opened', {
            ActionDetail: helper.buildActionDetail($(this), 'top right')
          });
        });

        $('.js-erc-user-actions__profile').click(function () {
          if ($(this).hasClass('state-open')) {
            return;
          }
          analytics.track('Account Menu Opened', {
            ActionDetail: helper.buildActionDetail($(this), 'top right')
          });
        });
      },

      trackAccountMenuItemSelected: function() {
        $('.erc-account-menu__list-item, .erc-account-menu__user-meta, .dropdown-menu a').click(function() {
          if ($(this).hasClass('erc-account-menu__list-item-cta')) {
            return;
          }
          analytics.track('Account Menu Item Selected', {
            ActionDetail: helper.buildActionDetail($(this), 'top right')
          });
        });
      },

      trackWhatIsVRV: function () {
        $('#what_is_vrv').click(function () {
          analytics.track('What is VRV Navigated', {
            ActionDetail: helper.buildActionDetail($(this), 'left')
          })
        });
      },

      trackTosSelected: function () {
        $('#freetrial_landing_signup_form').find('#tos_link').click(function () {
          analytics.track('Terms Selected', {
            ActionDetail: helper.buildActionDetail($(this), 'right')
          })
        });
      },

      trackPrivacySelected: function () {
        $('#freetrial_landing_signup_form').find('#privacy_link').click(function () {
          analytics.track('Privacy Selected', {
            ActionDetail: helper.buildActionDetail($(this), 'right')
          });
        })
      },

      trackPasswordResetNavigated: function () {
        $('#freetrial_login_form').find('.forgot-password-link').click(function () {
          analytics.track('Password Reset Navigated', {
            ActionDetail: helper.buildActionDetail($(this), 'right')
          });
        })
      },

      trackHappyMealExitToCR: function () {
        analytics.track('HM Exited to Crunchyroll');
      },

      trackHappyMealExitToVRV: function () {
        analytics.track('HM Exited to VRV');
      },

      trackSFPHelp: function() {
        analytics.track('SFP Help/FAQ', {
          ActionDetail: helper.buildActionDetail($(this), 'bottom')
        })
      },

      trackSFPBenefitNavigated: function(partner, link) {
        analytics.track('3rd Party Bundle Benefit Link Navigated', {
          ActionDetail: helper.buildActionDetail($(this)),
          externalBenefitPartner: partner,
          externalDestinationUrl: link
        })
      },

      trackManualSigninNavigated: function () {
        $('#create_or_sign_in_vrv_account').click(function () {
          analytics.track('Manual Signin Navigated', {
            ActionDetail: helper.buildActionDetail($(this), 'bottom')
          });
        });
      },

      trackErrorBannerDisplayed: function (element) {
        analytics.track('Error Banner Displayed', {
          ActionDetail: helper.buildActionDetail($(element), 'center')
        });
      },

      trackErrorBannerNavigated: function () {
        analytics.track('Error Banner Navigated', {
          ActionDetail: helper.buildActionDetail($(this), 'center')
        });
      },

      trackShoppingContinued: function () {
        $('#continue_shopping').click(function () {
          analytics.track('Shopping Continued');
        });
      },

      trackCartUpdated: function () {
        $('#update_cart').click(function () {
            analytics.track('Cart Updated');
          }
        );
      },

      trackCartViewed: function (cart) {
        analytics.track('Cart Viewed', cart);
      },

      trackGetShippingEstimate: function (countryCode, zip) {
        analytics.track('Get Shipping Estimate', {
          country: countryCode,
          zip: zip
        });
      },

      trackCheckoutStarted: function () {
        $('#checkout_cart').click(function () {
          analytics.track('Checkout Started');
        });
      },

      trackOrderCompleted: function (orderId) {
        analytics.track('Order Completed', {
          orderId: orderId
        });
      },

      trackPartnerLoginViewed: function (partnerId, partnerName) {
        analytics.track('Partner Login', {
          partnerId: partnerId,
          partnerName: partnerName
        });
      },

      trackPartnerLoginRequested: function (loginId, partnerId, partnerName) {
        analytics.track('Partner Login Requested', {
          partnerId: partnerId,
          partnerName: partnerName,
          loginId: loginId
        });
      },

      trackPartnerSignupViewed: function (partnerId, partnerName) {
        analytics.track('Partner Signup', {
          partnerId: partnerId,
          partnerName: partnerName
        });
      },

      trackPartnerSignupRequested: function (signupId, partnerId, partnerName) {
        analytics.track('Partner Signup Requested', {
          partnerId: partnerId,
          partnerName: partnerName,
          signupId: signupId
        });
      },

      trackPromotedShowClicked: function() {
        $('a[data-name="promoted_group"]').click(function() {
          position = $(this).data('position');
          selectedShow = featuredShows[position];

          analytics.track('CR Legacy Featured Show Selected', {
            ActionDetail: helper.buildActionDetail($(this), 'right'),
            ContentMedia: helper.buildContentMediaFromGroup(selectedShow),
            featuredShowPosition: position,
            featuredShows: featuredShows
          });
        });
      },

      trackOptInPopupDismissed: function() {
        $('.opt-in__close').click(function() {
          analytics.track('Beta Opt-in Pop-up Dismissed', {
            ActionDetail: helper.buildActionDetail($(this), 'bottom right')
          });
        });
      },

      trackBetaOptInConfirmed: function() {
        $('.cr-button--primary').click(function() {
          analytics.track('Beta Opt-in Confirmed', {
            ActionDetail: helper.buildActionDetail($(this), $(this).data('position'))
          });
        });
      },

      trackBetaOptOutConfirmed: function() {
        $('#beta_opt_out_confirm_btn').click(function() {
          analytics.track('Beta Opt-out Confirmed', {
            ActionDetail: helper.buildActionDetail($(this), 'center')
          });
        });
      },

      trackModalBetaLeaveClose: function() {
        $('.js-beta-leave-close').click(function() {
          analytics.track('Beta Opt-out Cancelled', {
            ActionDetail: helper.buildActionDetail($(this))
          });
        });
      },

      trackBetaCTASelected: function() {
        $('.opt-in__nav, .opt-in__cta').click(function() {
          analytics.track('Beta Opt-in CTA Selected', {
            ActionDetail: helper.buildActionDetail($(this), $(this).data('position')),
          });
        });
      },

      trackStoreButtonClicked: function() {
        $('#store_button').click(function() {
          analytics.track('CR Store Button Clicked', {
            ActionDetail: helper.buildActionDetail($(this), $(this).data('position')),
          });
        });
      },

      trackMarketingBox: function() {
        $('#marketing_box').one('click', function(e) {
          var $this = $(this),
            url = $this.attr('href');

          analytics.track('Promo Box Clicked', {
            ActionDetail: helper.buildActionDetail($this, $this.data('position')),
            promoBoxImage: $this.children('img').attr('src'),
            promoBoxURL: url,
            campaignId: $this.data('campaignid')
          });
        });
      },

      trackMarketingBanner: function() {
        $('#marketing_banner').one('click', function(e) {
          var $this = $(this),
            url = $this.attr('href');

          analytics.track('Promo Box Clicked', {
            ActionDetail: helper.buildActionDetail($this, $this.data('position')),
            promoBoxImage: $this.data('image'),
            promoBoxURL: url,
            campaignId: $this.data('campaignid'),
            ContentMedia: helper.buildContentMediaFromGroup()
          });
        });
      },

      trackSeriesBanner: function() {
        $('#series_promo_banner').one('click', function(e) {
          var $this = $(this),
            url = $this.attr('href');

          analytics.track('Promo Box Clicked', {
            ActionDetail: helper.buildActionDetail($this, $this.data('position')),
            promoBoxImage: $this.children('img').attr('src'),
            promoBoxURL: url,
            campaignId: $this.data('campaignid')
          });
        });
      },

      trackCancellationSurveySubmitted: function() {
        $('#exit_survey_submit').one('click', function(e) {
          var $this = $(this);

          analytics.track('Cancellation Survey Submitted', {
            ActionDetail: helper.buildActionDetail($this),
            SKU: {
              skuId: $this.data('sku'),
              skuTitle: $this.data('product-title'),
              skuType: ''
            }
          });
        });
      },

      trackWatchlistItemAddAttempted: function() {
        $(window).on('watchlist.item.add_attempted', function(e, data) {
          let event_properties = {
            ContentMedia: data.contentMedia,
            ActionDetail: helper.buildActionDetail($(data.elem), 'center'),
          };
          let experiment = null;
          if (!_.isEmpty(experiment)) {
            event_properties['Experiment'] = experiment;
          }

          analytics.track('Watchlist Item Add Attempted', event_properties);
        });
      },

      trackWatchlistItemRemoveAttempted: function() {
        $(window).on('watchlist.item.remove_attempted', function(e, data) {
          analytics.track('Watchlist Item Remove Attempted', {
            ContentMedia: data.contentMedia,
            ActionDetail: helper.buildActionDetail($(data.elem), 'center')
          });
        });
      },

      trackAppStoreNavigated: function() {
        $('.interstitial-cta-js').click(function() {
          let $this = $(this);
          analytics.track('App Store Navigated', {
            appStore: $this.data('app-store'),
            ActionDetail: helper.buildActionDetail($this, 'center')
          });
        });
      },

      trackAccountRequired: function(btn) {
        let page_metadata = {};
        page_metadata = {"isAuthenticated":false};
        page_metadata.referrer = document.referrer;

        analytics.page('Account Required', page_metadata);
      }
    };

    $(function() {
      segment.track();
    });

    var helper = {
      buildActionDetail: function(element, position, text) {
        return {
          textOfButtonOrLink: text || element.text().trim(),
          pageOrScreen: 'Login',
          position: position || '',
          referrer: document.referrer
        }
      },
      buildContentMediaFromGroup(group) {
        if (group === undefined) {
          return;
        }

        return {
          mediaType: group.mediaType,
          mediaId: group.mediaId,
          externalMediaID: group.externalMediaID,
          mediaTitle: group.name
        }
      }
    };
  })();
</script>
      
<script>
  function initTTDUniversalPixelApi() {
    var url = 'https://insight.adsrvr.org/track/up/';
    var advertizerId = "bk1xezd";
    var tagId = "a1pxjel";
    var params = {};

    
    if (ttd_dom_ready) {
      ttd_dom_ready(function () {
        if (typeof TTDUniversalPixelApi === 'function') {
          var universalPixelApi = new TTDUniversalPixelApi();
          universalPixelApi.init(advertizerId, [tagId], url, params);
        }
      });
    }
  }
</script>

<script>
  window.addEventListener('load', function () {
    window.privacy.appendScript(['ads-general', 'ads-vendor'], 'the-trade-desk', {
      async: false,
      onload: initTTDUniversalPixelApi,
      src: 'https://js.adsrvr.org/up_loader.1.1.0.js'
    });
  });
</script>

    
  
  
          
  

  <script type="text/javascript">
    $(function initializePage() {
      $('#login_form').validationManager(getValidationManagerOptions());
      $('#signup_form').validationManager(getValidationManagerOptions());

      Page.messaging_box_controller = new MessageBox({"render_to": "#message_box"});
      Page.messaging_box_controller.addItems([]);
    });

  </script>
</html>
